package cn.bbstone.pisces2.config;

public class ConfigModel {

    public static final String SERVER_FLI_DIR_KEY = "fli.server.dir";
    public static final String CLIENT_FLI_DIR_KEY = "fli.client.dir";
    public static final String FLI_FILTER_KEY = "fli.filter";

    public static final String SERVER_PORT_KEY = "server.port";
    public static final String SERVER_HOST_KEY = "server.host";
    public static final String SERVER_DIR_KEY = "server.dir";
    public static final String CLIENT_DIR_KEY = "client.dir";

    public static final String CLIENT_FILE_OVERWRITE = "client.file.overwrite";
    public static final String CLIENT_CONN_NUM_KEY = "client.core.conn.num";
    public static final String CLIENT_RECV_BUFFER_KEY = "client.core.recv.buffer";
    //	public static final String FLI_CACHE_SIZE = "fli.cache.size";
    public static final String FILE_TEMP_POSTFIX_KEY = "file.temp.postfix";

    // --- common
    protected String filter;

    // --- server fields
    protected String serverHost;
    protected int serverPort;
    protected String serverRoot;

    // client fields
    protected String clientRoot;
    protected String postfix;
    protected boolean overwrite;
    protected int connNum;
    protected String recvBuffer;

    public String getFilter() {
        return filter;
    }

    public void setFilter(String filter) {
        this.filter = filter;
    }

    public String getServerHost() {
        return serverHost;
    }

    public void setServerHost(String serverHost) {
        this.serverHost = serverHost;
    }

    public int getServerPort() {
        return serverPort;
    }

    public void setServerPort(int serverPort) {
        this.serverPort = serverPort;
    }

    public String getServerRoot() {
        return serverRoot;
    }

    public void setServerRoot(String serverRoot) {
        this.serverRoot = serverRoot;
    }

    public String getClientRoot() {
        return clientRoot;
    }

    public void setClientRoot(String clientRoot) {
        this.clientRoot = clientRoot;
    }

    public String getPostfix() {
        return postfix;
    }

    public void setPostfix(String postfix) {
        this.postfix = postfix;
    }

    public boolean isOverwrite() {
        return overwrite;
    }

    public void setOverwrite(boolean overwrite) {
        this.overwrite = overwrite;
    }

    public int getConnNum() {
        return connNum;
    }

    public void setConnNum(int connNum) {
        this.connNum = connNum;
    }

    public String getRecvBuffer() {
        return recvBuffer;
    }

    public void setRecvBuffer(String recvBuffer) {
        this.recvBuffer = recvBuffer;
    }
}
